#ifndef COLOR_UNITS_H
#define COLCR_UNITS_H

#include <stdio.h>

#define COLOR_RESET "\033[0m"
#define COLOR_PASS  "\033[37;42m"  //background: green  front: white 绿底白字（PASS）
#define COLOR_FAIL  "\033[30;41m"  //background: red    front: black 红底黑字 (FAIL)
#define COLOR_DEBUG "\033[37;44m"  //蓝底白字 

#define PRINT_PASS(message) \
    printf(COLOR_PASS "[PASS]" COLOR_RESET "%s\n", message)
#define PRINT_FAIL(message) \
    printf(COLOR_FAIL "[FAIL]" COLOR_RESET "%s\n", message)
#define PRINT_DEBUG(message) \
    printf(COLOR_DEBUG "[DEBUG]" COLOR_RESET "%s\n", message)

/*
    // function: print PASS
void print_pass(const char* message) {
    printf("COLOR_PASS[PASS] COLOR_RESET %s\n", message);
}
    // function: print FAIL 
void print_fail(const char* message) {
    printf("COLOR_FAIL[FAIL] COLOR_RESET %s\n", message);
}*/

#endif